GtkWidget: Avoid lingering clock frame updates
authorBastien Nocera <hadess@hadess.net>
Tue, 22 Oct 2013 16:42:01 +0000 (18:42 +0200)
committerBastien Nocera <hadess@hadess.net>
Wed, 23 Oct 2013 13:22:27 +0000 (15:22 +0200)
commit7c12e6480b03bca9795343f5a38754740e36d86c
tree4628eae83307bba95222666b6596533303affbba
parent438cd857c49242244dda2923ac447f36464b9e72
GtkWidget: Avoid lingering clock frame updates

For some widgets, like GtkTreeView, which setup a clock frame
update during realize, it was possible to call
gdk_frame_clock_begin_updating() twice, but only ever disconnecting
from it once. This happens because the realized flag is set at an
unpredictable time by the GtkWidget's realize implementation.

Keep the signal handler ID from us connecting to the "update" signal
to avoid connecting to it twice.

This fixes high wake-up count from any application using GtkTreeView,
even idle ones.

https://bugzilla.gnome.org/show_bug.cgi?id=710666
gtk/gtkwidget.c